<?php
/*	include_once('adodb5/adodb.inc.php');
	$db = NewADOConnection('postgres');
	if ($db->Connect("localhost", "postgres", "goire", "bolao")) {
    echo 'conectou';
  } else {
    echo 'NAO conectou';
  }
  */

include('adodb5/adodb.inc.php');

$db = ADONewConnection('postgres'); # eg. 'mysql' or 'oci8'
$db->debug = true;
$db->Connect($server, $user, $password, $database);
$rs = $db->Execute('select * from some_small_table');
print "<pre>";
print_r($rs->GetRows());
print "</pre>";

  /*

	include_once('util.php');
	$oUtil = new util(); */
?>